<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="./vue.js"></script>
</head>
<style>
    .title {
        width: 180px;
        height: 20px;
        border: 1px solid #fdff73;
        /* 单行省略 */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;

    }
</style>

<body>
    <div id="app">
        <p class="title">{{msg}}</p>
        <input type="text" v-model="msg">
    </div>
    <script>
        const obj = {
            msg: 'Hello world!',
            count: 0,
        };
        const app = new Vue({
            el: '#app',
            data: obj,
            methods: {

            },
        });
    </script>
</body>

</html>